﻿<ribbon:RibbonWindow x:Class="Brjnk.GpxExplorer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        xmlns:loc="clr-namespace:Brjnk.GpxExplorer.Localization"
        Icon="/Resources/Icons/icon3.ico"
        Name="RootWindow"
        Title="{loc:Loc titleMain}"
        DataContext="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Application.Workspace}">

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <!--ribbon-->
            <RowDefinition Height="Auto" />
            <!--řádek pod ribbonem-->
            <RowDefinition Height="*" />
            <!--hlavní obsah-->
            <RowDefinition Height="Auto" />
            <!--řádek pod obsahem-->
        </Grid.RowDefinitions>

        <!--Ribbon-->
        <ContentPresenter Content="{StaticResource ribbon}" ></ContentPresenter>

        <!--Řádek pod ribbonem-->
        <Border Grid.Row="1" Background="LightGoldenrodYellow">
            <ContentPresenter ContentTemplateSelector="{StaticResource ApplicationStateTemplateSelector}" Content="{Binding ApplicationStateManager.Current}" />
        </Border>
        <!--Hlavní obsah-->
        <ContentPresenter Grid.Row="2" Content="{StaticResource mainContent}" />

        <!--Řádek pod obsahem-->
        <ContentPresenter Grid.Row="3" />
    </Grid>
</ribbon:RibbonWindow>